@echo off

goto FUNC_TIME_STAMP
echo now=%time:~0,2%hour%time:~3,2%minute%time:~6,2%second
set time1=%time:~0,2%%time:~3,2%%time:~6,2%
pause
echo now=%time:~0,2%hour%time:~3,2%minute%time:~6,2%second
set time2=%time:~0,2%%time:~3,2%%time:~6,2%


set /a time3=%time2%-%time1%
echo interval %time3% seconds
pause 

:FUNC_TIME_STAMP
set /a tm_stamp1=%timestamp:~0,10%
echo %tm_stamp1%
pause 
set /a tm_stamp2=%timestamp:~0,10%
echo %tm_stamp2%
set /a tm_stamp3=%tm_stamp2%-%tm_stamp1%
echo interval %tm_stamp3% seconds


